/*

#include "EnvCell.h"
#include <vector>
#include "Particle.h"
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <sstream>
#include <stdlib.h>

using namespace std;

int main() {
    string userInput;
    EnvCell* testCell;
    while (true) {
        cout << "\n\n===============\n";
        cout << "1) constructor" << endl;
        cout << "2) destructor" << endl;
        cout << "3) add particle" << endl;
        cout << "4) remove particle" << endl;
        cout << "5) clean cell" << endl;
        cout << "6) print # of particles" << endl;
        cout << "7) account a cell" << endl;
                cout << "8) exit" << endl;

        getline(cin, userInput, '\n');

        int userInt = -1;
        istringstream iss(userInput);
        iss >> userInt >> std::ws;
        if (iss.fail() || !iss.eof()) {
            cerr << "Invalid Input, pleace try again" << endl;
        } else {

            switch (userInt) {
                case 1:
                {
                    testCell = new EnvCell();
                    break;
                }
                case 2:
                {
                    testCell->~EnvCell();
                    break;
                }
                case 3:
                {
                    int newParticleID;
                    cout << "enter ID for new particle\n";
                    cin >> newParticleID;
                    Particle* newParticle = new Particle(newParticleID);
                    testCell->placeParticle(newParticle);
                    int savedID = newParticle->getID();
                    cout << "placed particle has ID: " << savedID << endl;
                    break;
                }
                case 4:
                {
                    Particle* oldParticle = testCell->takeParticle();
                    if (oldParticle == NULL) {
                        cout << "No particle removed!" << endl;
                    } else {
                        int pickedID = oldParticle->getID();
                        cout << "picked particle has ID: " << pickedID << endl;
                    }
                    break;
                }
                case 5:
                {
                    testCell->cleanCell();
                    break;
                }
                case 6:
                {
                    int numParticles = testCell->getNumParticles();
                    cout << "Number of particles = " <<
                            numParticles << endl;
                    testCell->printContainer();
                    break;
                }
                case 7:
                {
                    int myints[] = {1, 2, 3, 4, 5, 6};
                    vector<int> assignedIDs(myints, myints + sizeof (myints) / sizeof (int));
                    for (int index = 1; index < 6; index++) {
                        Particle* newParticle = new Particle(index);
                        testCell->placeParticle(newParticle);
                    }
                    assignedIDs = testCell->accountCell(assignedIDs);
                    
                    if (assignedIDs.at(0) == 6) {
                        printf("account works!\n");
                    } else {
                        printf("account failed!\n");
                    }
                }
                case 8:
                {
                    exit(0);
                    break;
                }


            }
        }

    }
}

*/
